<?php
declare (strict_types = 1);

namespace app\admin\controller;

use app\admin\model\admins;
use think\Request;

class User extends Base
{
    /**
     * 显示资源列表
     *
     * @return \think\Response
     */
    public function index()
    {
        $res = (new \app\admin\model\User())->list();
        halt($res->toArray());

    }


    public function adds(){

        $res = (new \app\admin\model\User())->adds();
        halt($res);
    }


}
